package cn.hx.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Attendance)实体类
 *
 * @author makejava
 * @since 2022-11-01 09:51:56
 */
public class Attendance implements Serializable {
    private static final long serialVersionUID = -23106459015656354L;
    
    private Integer id;
    
    private Integer userId;

    @DateTimeFormat(pattern = "YYYY-MM-dd")
    private Date recordDate;
    
    private Double amount;
    
    private Double leave;
    
    private Double absenteeism;
    
    private Double vacation;
    
    private Double realAmount;

    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(Date recordDate) {
        this.recordDate = recordDate;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getLeave() {
        return leave;
    }

    public void setLeave(Double leave) {
        this.leave = leave;
    }

    public Double getAbsenteeism() {
        return absenteeism;
    }

    public void setAbsenteeism(Double absenteeism) {
        this.absenteeism = absenteeism;
    }

    public Double getVacation() {
        return vacation;
    }

    public void setVacation(Double vacation) {
        this.vacation = vacation;
    }

    public Double getRealAmount() {
        return realAmount;
    }

    public void setRealAmount(Double realAmount) {
        this.realAmount = realAmount;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", userId=" + userId +
                ", recordDate=" + recordDate +
                ", amount=" + amount +
                ", leave=" + leave +
                ", absenteeism=" + absenteeism +
                ", vacation=" + vacation +
                ", realAmount=" + realAmount +
                ", user=" + user +
                '}';
    }
}

